package com.tanhua.admin.controller;


import com.tanhua.admin.service.AnalysisService;
import com.tanhua.model.vo.AnalysisSummaryVo;
import com.tanhua.model.vo.PageResult;
import com.tanhua.model.vo.UserInfoVoAge;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/dashboard")
public class DashboardController {

    @Autowired
    private AnalysisService analysisService;
    /**
     * 概要统计信息-累计注册用户数 过去7天活跃用户数 ......
     */
    @GetMapping("/summary")
    public ResponseEntity summary(){
        AnalysisSummaryVo analysisSummaryVo = analysisService.summary();
        return ResponseEntity.ok(analysisSummaryVo);
    }
}
